﻿package frEngine.loaders.particleSub.multyEmmiterType
{
    import __AS3__.vec.*;
    import flash.geom.*;
    import frEngine.animateControler.particleControler.*;

    public class PointMultyEmmiter extends Object implements IMultyEmmiterType
    {
        private var _defaultStartPos:Vector3D;
        private var _defaultEndPos:Vector3D;
        private var strValue:String;
        private static const _temp:Vector3D = new Vector3D();

        public function PointMultyEmmiter(param1:String)
        {
            this._defaultStartPos = new Vector3D();
            this._defaultEndPos = this.defaultStartPos;
            this.strValue = param1;
            return;
        }// end function

        public function get defaultStartPos() : Vector3D
        {
            return this._defaultStartPos;
        }// end function

        public function get defaultEndPos() : Vector3D
        {
            return this._defaultEndPos;
        }// end function

        public function get defaultMultyPlaySpeed() : int
        {
            return 0;
        }// end function

        public function initData(param1:ParticleParams) : void
        {
            var _loc_2:* = this.strValue.split(",");
            var _loc_3:* = _loc_2[1];
            var _loc_4:* = _loc_3.split(" ");
            this._defaultStartPos = new Vector3D(_loc_4[0], _loc_4[1], _loc_4[2]);
            return;
        }// end function

        public function get distanceBirthNum() : int
        {
            return 1;
        }// end function

        public function reInit(param1:Vector3D, param2:Vector3D, param3:int, param4:ParticleParams, param5:Vector.<Number>) : void
        {
            if (param1 == null)
            {
                param1 = this._defaultStartPos;
            }
            param5.push(param1.x, param1.y, param1.z, 0);
            return;
        }// end function

    }
}
